package com.usian.service;

import com.usian.pojo.TbContent;
import com.usian.pojo.TbContentCategory;
import com.usian.utils.AdNode;
import com.usian.utils.PageResult;
import com.usian.utils.Result;

import java.util.List;

public interface ContentService {
    List<TbContentCategory> selectContentCategoryByParentId(Integer id);

    Integer insertContentCategory(Integer parentId, String name);


    Integer updateContentCategory(Integer id, String name);

    Integer deleteContentCategoryById(Integer categoryId);


    PageResult selectTbContentAllByCategoryId(Integer page, Integer rows, Long categoryId);

    Integer insertTbContent(TbContent tbContent);


    List<AdNode> selectFrontendContentByAD();


}
